﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class FailPanel : BasePanel {
    public Button exit_btn;
    public Button restart_btn;

    private void Awake()
    {
        exit_btn.onClick.AddListener(OnClickExit);
        restart_btn.onClick.AddListener(OnClickRestart);
    }
    public override void OnActive()
    {
        
    }

    private void OnClickExit()
    {
        AudioManager.Instance.PlayClick();
        UIManager.Instance.Open("ChoosePanel");
    }
    private void OnClickRestart()
    {
        AudioManager.Instance.PlayClick();
        GameManager.Instance.RestartGame();
        UIManager.Instance.Pop();
    }
}
